package com.shadow.mall.fulfill.controller;

import com.shadow.mall.common.core.JsonResult;
import com.shadow.mall.fulfill.api.FulfillApi;
import com.shadow.mall.fulfill.domain.request.CancelFulfillRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/fulfill")
public class FullfillController {

    @Autowired
    FulfillApi fulfillApi;


    @RequestMapping("/cancelFulfill")
    public JsonResult<Boolean> cancelFulfill(@RequestBody CancelFulfillRequest cancelFulfillRequest){
        return fulfillApi.cancelFulfill(cancelFulfillRequest);
    }


}
